#include <func.h>


void* pthread_func(void* p)
{
     printf("i am child thread\n");
     return NULL;
}
int main()
{
    pthread_t pthid;
    int ret=pthread_create(&pthid,NULL,pthread_func,NULL);
    THREAD_ERROR_CHECK(ret,"pthread_create")
    ret=pthread_join(pthid,NULL);
    THREAD_ERROR_CHECK(ret,"pthread_join")
    printf("i am main thread\n");
    return 0;
}